/**
 * Copyright © 2016-2024 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
:host {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;

  .title {
    font-weight: 500;
  }

  .template-key {
    color: rgba(0, 0, 0, 0.38);
    height: 32px;
    line-height: 32px;
  }

  .boolean-true, .boolean-false {
    border-radius: 3px;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    width: fit-content;
    font-size: 14px;
    text-transform: capitalize;
  }

  .boolean-false {
    color: #d12730;
    background-color: rgba(209, 39, 48, 0.08);
  }

  .boolean-true {
    color: #198038;
    background-color: rgba(25, 128, 56, 0.08);
  }

  mat-expansion-panel {
    margin-top: 10px;
    overflow: visible;
  }

  .mat-expansion-panel-header-description {
    flex-direction: row-reverse;
    align-items: center;
    margin-right: 0;
    flex: 0;

    & > mat-icon {
      margin-left: 15px;
      color: rgba(0, 0, 0, 0.38);
    }
  }

  .mat-expansion-panel-header {
    padding: 0 0 0 12px;

    &.mat-expansion-panel-header.mat-expanded {
      height: 48px;
    }

    .mat-content.mat-content-hide-toggle {
      margin-right: 0;
    }
  }

  .rpc-params-row {
    overflow: hidden;
    white-space: nowrap;

    & :not(:first-child) {
      white-space: pre;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .template-name {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  ::ng-deep .mat-content {
    align-items: center;
  }

  .mat-expansion-panel-header-title {
    flex: 1;
    margin: 0;
  }
}


